package com.sairobo.base.common.utils;

/**
 * 七牛缩略图相关
 * @author shengming
 * @version V1.0
 * @description:
 * @date 2018/1/26 20:19
 */

public class ThumbnailUtil {
    //等比缩小生成200x160缩略图
    private static String thumbParams = "?imageView2/1/w/200/h/160";

    public static String getThumbUrl(String imgUrl){
        if(imgUrl.indexOf("?")>-1){//已压缩
            return imgUrl;
        }
        return imgUrl+thumbParams;
    }

}
